import { axios } from '@/utils/request'
/**
 * api接口列表
 */
const api = {
  add: '/planet.carousel/add',
  getList: '/planet.carousel/getList',
  edit: '/planet.carousel/edit',
  delete: '/planet.carousel/delete',
}

// 添加
export function add(data) {
  return axios({
    url: api.add,
    method: 'post',
    data,
  })
}
// 删除
export function deleted(data) {
  return axios({
    url: api.delete,
    method: 'post',
    data: data,
  })
}
// 编辑
export function edit(data) {
  return axios({
    url: api.edit,
    method: 'post',
    data,
  })
}
//图书列表
export function list(params) {
  return axios({
    url: api.getList,
    method: 'get',
    params,
  })
}
// 老师列表
// export function teacherList(params) {
//   return axios({
//     url: api.teacherList,
//     method: 'get',
//     params,
//   })
// }
